<?php $errorStr="";if(!$filePaths=filter_input(INPUT_POST,"file_path",FILTER_UNSAFE_RAW,['flags'=>FILTER_FORCE_ARRAY])){$errorStr='无效文件ID';}else{$fileSpace=new Zmsun\Copen\FileSpace($this->serviceManager);foreach($filePaths as$filePath){$fileSpace->del($filePath);}}echo json_encode(['status'=>$errorStr ?'error':'ok','info'=>$errorStr,]);?>